<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CP2130 Userspace Driver/Library: /home/rafael/Development/cp2130/src/include/cp2130.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CP2130 Userspace Driver/Library
   &#160;<span id="projectnumber">sv0a</span>
   </div>
   <div id="projectbrief">opensourceClibraryforusewiththecp2130usbtospibridge</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b0856f6b0d80ccb263b2f415c91f9e17.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">cp2130.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="cp2130_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __CP2130_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __CP2130_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;libusb-1.0/libusb.h&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;unistd.h&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="debug__macros_8h.html">debug_macros.h</a>&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="utils_8h.html">utils.h</a>&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// OTP ROM WRITE PROTECT</span></div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a18dfd99dcad531d72b0217b467f9a7a9">   14</a></span>&#160;<span class="preprocessor">#define CP2130_OTP_ROM_WRITE_PROTECT    // prevents unwanted writes to the one time programmable prom</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// Product and vendor ids</span></div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a4bac9a0d06aac28986df4d0c7a6199f4">   17</a></span>&#160;<span class="preprocessor">#define CP2130_DEFAULT_VID  0x10C4      // Silicon Labs VID</span></div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a68b86bec25d8cc029f09a428be8497aa">   18</a></span>&#160;<span class="preprocessor">#define CP2130_DEFAULT_PID  0x87A0      // default pid Silabs allocated for cp2130</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// EndPoints</span></div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a2a152b2262fb462188303698415fb8fa">   21</a></span>&#160;<span class="preprocessor">#define CP2130_EP_HOST_DEVICE   0x01</span></div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a7474215a590577834f4e893cc76af222">   22</a></span>&#160;<span class="preprocessor">#define CP2130_EP_DEVICE_HOST   0x82</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// Request types</span></div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a50026924ce2cdde137a48973dea09e28">   25</a></span>&#160;<span class="preprocessor">#define CP2130_REQ_DEVICE_HOST_VENDOR   0xC0</span></div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="cp2130_8h.html#aa9340d4950800e9bdc24977345b1ca05">   26</a></span>&#160;<span class="preprocessor">#define CP2130_REQ_HOST_DEVICE_VENDOR   0x40</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// memory Key</span></div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a2286d014aa0be181ac5f56ff2b7c8435">   29</a></span>&#160;<span class="preprocessor">#define CP2130_MEM_KEY  0xA5F1</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">// Command ID&#39;s</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">// Data Transfer Commands (Bulk Transfers)</span></div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a8e911b82a4f54a1e9d7f4dcd23c9b54d">   33</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_READ           0x00</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a907cba3cce13a879dded8d25ebcfae19">   34</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_WRITE          0x01</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a5259b57d77695a15e3d92736cc31cd31">   35</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_WRITEREAD      0x02</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a8c736ec55cc1b2eb02f54e019ec3bb7a">   36</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_READRTR        0x04</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">// Configuration and Control Commands (Control Transfers)</span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a164874d5abfdc758bd94d5d9be4db0d7">   38</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_CLK_DIV    0x46</span></div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a364e10ad405b69f5613432f18326e115">   39</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_CLK_DIV    0x47</span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a147fe3c2cbadbddba7aad0d47ec4cfe4">   40</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_EVNT_CNT   0x44</span></div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a4d4119c1d055d3d1a81681d0358afd6f">   41</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_EVNT_CNT   0x45</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="cp2130_8h.html#acd045836e2094bcaee7efec21bcbb5b5">   42</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_FULL_TH    0x34</span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a343e0f5804d939c3e64e6e42c9e7c7fc">   43</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_FULL_TH    0x35</span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a2cebbd3e1f01d4ac6a2df08365c5c65a">   44</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_GPIO_CS    0x24</span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ace960761f76d099afc1c5ae1ff47e5f9">   45</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_GPIO_CS    0x25</span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ad2d377562cddfc90615bc7d99d41500c">   46</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_GPIO_MDLVL 0x22</span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="cp2130_8h.html#af73fb3f513adccd79a041e491ad3f3fc">   47</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_GPIO_MDLVL 0x23</span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a10326c24304a2007ad6746fc18097fef">   48</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_GPIO_VAL   0x20</span></div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ae527598cfef08ae8a6fe47fcf5efb872">   49</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_GPIO_VAL   0x21</span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a664595c32993e9617981ac7e1dbbed6f">   50</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_RTR_STATE  0x36</span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a73d181303679ab579b04e4b5f4664d27">   51</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_RTR_STOP       0x37</span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="cp2130_8h.html#adb05619a7db7cea5379d06dff8b9b7a6">   52</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_SPI_WORD   0x30</span></div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a359853795eed5ec71774564494a9b4c1">   53</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_SPI_WORD   0x31</span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="cp2130_8h.html#add3a1285576e1e970700a3c120f2c1dc">   54</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_SPI_DELAY  0x32</span></div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a7c1059d722d352e9b65d67c675bbdccc">   55</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_SPI_DELAY  0x33</span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a8b73ce338e195135197ec00dfa6cf5e8">   56</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_VERSION    0x11</span></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ac5cc436588f920c5dfabefcd4d7016ce">   57</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_RESET          0x10</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">// OTP ROM Configuration Commands (Control Transfers)</span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ad62cff452d38d64153d4024bdf7d2e3e">   59</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_LOCK_BYTE  0x6E</span></div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a91d0b4426d03f34d5f7fea7a4d30bd66">   60</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_LOCK_BYTE  0x6F</span></div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a86463ed2751fc2acfeb91169928c697f">   61</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_MAN_STR_1  0x62</span></div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a7ea9bc5a07c493052d2ed5c3b71aac80">   62</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_MAN_STR_1  0x63</span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a8a1a9a54fbae0355911ff1e9277aaa76">   63</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_MAN_STR_2  0x64</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a8ffc0dab899ddf3e0e65f4819eb24440">   64</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_MAN_STR_2  0x65</span></div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ad8c510cd50fe582db4932adcea669c62">   65</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_PIN_CFG    0x6C</span></div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a92bbb0e3baf229a40d9628c0516b8864">   66</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_PIN_CFG    0x6D</span></div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a750076eccdf6032a2d8495daf74b1c1e">   67</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_PROD_STR_1 0x66</span></div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a9eb52672e9bdd58c23aad138cb6607ee">   68</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_PROD_STR_1 0x63</span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a87f56c7431b064deaf483bff76141044">   69</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_PROD_STR_2 0x68</span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ab8e16675049a58bbe41fabf077d2c4c5">   70</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_PROD_STR_2 0x69</span></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a8ac3c51b1db36eb893b6339f6b852923">   71</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_PROM_CFG   0x70</span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="cp2130_8h.html#adfbdacb094d9e37f69187f4264839298">   72</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_PROM_CFG   0x71</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ac0b147453e7d7eff249c509f2767362f">   73</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_SERIAL_STR 0x6A</span></div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a1d61da3393fe7c4882db258a78ff5fb3">   74</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_SERIAL_STR 0x6B</span></div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a660bae51c7df4fd03950beed2078a8b7">   75</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_GET_USB_CFG    0x60</span></div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="cp2130_8h.html#af80bf28d648e3f4f6f93b486695ffc25">   76</a></span>&#160;<span class="preprocessor">#define CP2130_CMDID_SET_USB_CFG    0x61</span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment">// Event Counter</span></div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a2e9935ba8aeb47a3833831be6c73609e">   79</a></span>&#160;<span class="preprocessor">#define CP2130_EVNT_CNT_OF_FLAG     0x80</span></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a1262fbe8f1751be6ecda07121aa3c04b">   80</a></span>&#160;<span class="preprocessor">#define CP2130_EVNT_CNT_RISING_EDG  0x02</span></div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ad904a72879e7d7980c4220c416460bd3">   81</a></span>&#160;<span class="preprocessor">#define CP2130_EVNT_CNT_FALLING_EDG 0x03</span></div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a9b56005789768899936af34bface5306">   82</a></span>&#160;<span class="preprocessor">#define CP2130_EVNT_CNT_NEG_PULSE   0x06</span></div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a4c944f943c353d768d2c3b48673b21d2">   83</a></span>&#160;<span class="preprocessor">#define CP2130_EVNT_CNT_POS_PULSE   0x07</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">// GPIO CS</span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a8d631073804c1aeeafa9f109b7fb89b0">   86</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH0   0</span></div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="cp2130_8h.html#aa096e63b6d072fd058a06a914342a1ea">   87</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH1   1</span></div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="cp2130_8h.html#af261b31c57c07ef49f4cdabd5b92d6de">   88</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH2   2</span></div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a14fb2fb5c499fe77d59120a3f5b3743a">   89</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH3   3</span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ad490421b8935f661262a90ee452b765b">   90</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH4   4</span></div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a4313925da5929d7e6f3e20f038f8f374">   91</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH5   5</span></div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a5fe7d4841abbeb4fae6e7e89208a0e86">   92</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH6   6</span></div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a37fad502394cb6efed3973ea992efa3d">   93</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH7   7</span></div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a697f79742e1fd3eb8c4018ee8742386b">   94</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH8   8</span></div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a7f10b7424945310ed7bc5e05fdbcc6e7">   95</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH9   9</span></div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ad12a8718e1e762ade3722201b46afdac">   96</a></span>&#160;<span class="preprocessor">#define CP2130_CS_CH10  10</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a9d0399aee43b98cd3eb8fac1e90775bd">   98</a></span>&#160;<span class="preprocessor">#define CP2130_CS_MD_DIS    0x00</span></div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a5ebb7551e21f4e5461566b50b5c79932">   99</a></span>&#160;<span class="preprocessor">#define CP2130_CS_MD_EN     0x01</span></div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="cp2130_8h.html#afbb64f1466684193892eb740f1d0dc5a">  100</a></span>&#160;<span class="preprocessor">#define CP2130_CS_MD_EN_DIS_OTHERS 0x02</span></div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="cp2130_8h.html#adadb1fe277d91cf3711a91acbdb8631d">  102</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH0    0x0001</span></div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a02b99c7a491ac15ede1e0166de8b9fc8">  103</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH1    0x0002</span></div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a4baaa2e5b4ad68595dbd5e5c05ee0553">  104</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH2    0x0004</span></div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ada9964020d93485df761dd8b1ebaeee2">  105</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH3    0x0008</span></div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="cp2130_8h.html#abd7302a979257e6b9a7cd8b269cca048">  106</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH4    0x0010</span></div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="cp2130_8h.html#add0adaa0c26f57ebae3a7cf82d6ebb54">  107</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH5    0x0020</span></div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a07826703eeffea374dc9c39036c413ca">  108</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH6    0x0040</span></div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="cp2130_8h.html#abef131e096304d46fc1fce66e8775770">  109</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH7    0x0080</span></div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a9d3d367fe7f4db1468516553b274b5ea">  110</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH8    0x0100</span></div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="cp2130_8h.html#afbaf6152b47ea66ada120ecadbdbe01c">  111</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH9    0x0200</span></div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a0fef0c0015c4a58f8f41da71f1b0a2b8">  112</a></span>&#160;<span class="preprocessor">#define CP2130_CS_EN_MSK_CH10   0x0400</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ae91c9abce7e6542d2c56e0a1cbf4735e">  114</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH0    0x0008</span></div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a30f278501f8828f32a4e5cced66deea2">  115</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH1    0x0010</span></div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a3c9bcd9c9915eb80fea48c78ab9cfcdc">  116</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH2    0x0020</span></div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="cp2130_8h.html#af66cb514374ee205e9bd384a4a319b17">  117</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH3    0x0040</span></div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a722ccde3cdc43aea2ba11d2e5024d90b">  118</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH4    0x0080</span></div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a15b1f98a639b6af728cd917148f2a56a">  119</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH5    0x0100</span></div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="cp2130_8h.html#afd6ee3c98d0f12174929ae2072f4e939">  120</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH6    0x0400</span></div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a34b855d7d8c730c9125527fc6e6d5805">  121</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH7    0x0800</span></div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a699c9675225bd95df6420f129f3d1c77">  122</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH8    0x1000</span></div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a35f9392ca3de5d5618666eec54f2396f">  123</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH9    0x2000</span></div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a2fec713de9deff17105632fb35d05a68">  124</a></span>&#160;<span class="preprocessor">#define CP2130_CS_PIN_EN_MSK_CH10   0x4000</span></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment">// GPIO mask mode level and value</span></div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ae5a84bd10230d9b16e378b9bc605c539">  127</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO0_MSK    0x0008</span></div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ace5ab23f2198139bd40a69152e8fcaf5">  128</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO1_MSK    0x0010</span></div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="cp2130_8h.html#afe1a0dd9dc13cbe70be3497532e16109">  129</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO2_MSK    0x0020</span></div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a429ccaa916405bd2038c10f31db728dd">  130</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO3_MSK    0x0040</span></div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a9e0e379dc40469bda6ff9d493387e293">  131</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO4_MSK    0x0080</span></div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a649d111da465a7688429a7a0aea1b265">  132</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO5_MSK    0x0100</span></div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="cp2130_8h.html#abe4dce73f83c377a13794dde01a58d75">  133</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO6_MSK    0x0400</span></div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a2993d30ee5feb2587c48d5b6e50a6af8">  134</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO7_MSK    0x0800</span></div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="cp2130_8h.html#aed50adbc2808db01f06798010dceca4f">  135</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO8_MSK    0x1000</span></div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ae50e05344ec687622cab4ec15fec6438">  136</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO9_MSK    0x2000</span></div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="cp2130_8h.html#af9c997b8e79f079803df0b77ac26734b">  137</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO10_MSK   0x4000</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a6d93b426cb1532ce937e8670ef27ef0f">  139</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO0    0</span></div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a619508996b890559412f51b26f288f35">  140</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO1    1</span></div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ad085412cda138e47a86b26fe410d429c">  141</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO2    2</span></div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a39082ba8f1e35940fb49f9ca6d53fa6c">  142</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO3    3</span></div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a593de8759ae6a87293894ca79032e99a">  143</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO4    4</span></div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a62094f106075ce3b911a02d688e41e1f">  144</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO5    5</span></div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a8f45a1fe0329db06e97b931913e8260a">  145</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO6    6</span></div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a43bfd2d178169bf182902a8983154bd9">  146</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO7    7</span></div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="cp2130_8h.html#acbe9bc3e2564536864feca8dfd24a41e">  147</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO8    8</span></div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a8f43de9d3fe0f78a689b0813af853b5c">  148</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO9    9</span></div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a802e51f8d92bed3b03b5da2ab3c1581d">  149</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO10   10</span></div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a60feed937040f731170108f58257f96b">  151</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO_IN      0x00</span></div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="cp2130_8h.html#af1a7a390b8aa8db75f9cf23a6307093c">  152</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO_OUT_OD  0x01</span></div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a37b926f740f2c233803308ba1c89fbf7">  153</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO_OUT_PP  0x02</span></div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a4b9a13c3eff67d0dc0be30d20a9a43d9">  155</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO_LOW     0x00</span></div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a6ad67cbd09af4cbeafba6712f132a585">  156</a></span>&#160;<span class="preprocessor">#define CP2130_GPIO_HIGH    0x01</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="comment">// RTR</span></div><div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="cp2130_8h.html#aa56d46f738fad3f42e5e7cda3c888df1">  159</a></span>&#160;<span class="preprocessor">#define CP2130_ABORT_READRTR    0x01</span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="comment">// SPI word</span></div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="cp2130_8h.html#aca57294dc2127d040c5ef75ac0e7023c">  162</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_LEAD             0x00</span></div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ae538e3391bc5258916d5eed452ca77bd">  163</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_TRAIL            0x20</span></div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ae779b13b90908ef16be07ebcc4f4a154">  164</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_POL_IDLE_LOW     0x00</span></div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a998fb4431ed7d0f722ec4d16a8c67591">  165</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_POL_IDLE_HIGH    0x10</span></div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ac4336bbb9c7c414d3fcb09c2bc8f5ec5">  166</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CS_MODE_OD           0x00</span></div><div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a40c6b22e62ced61d8a89f65dc47dd84c">  167</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CS_MODE_PP           0x08</span></div><div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="cp2130_8h.html#aa6f4decf880099c7f8e216b5697ac8c9">  168</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_12M              0x00</span></div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a83f0e470e7835f70dee0a415a5ec0444">  169</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_6M               0x01</span></div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="cp2130_8h.html#acb80a502af3368730e385d042e4558ec">  170</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_3M               0x02</span></div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a25827a6f1d3465e2b68e402fd0226c71">  171</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_1_5M             0x03</span></div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a5e90085406ee68f3655a1d552cca590e">  172</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_750K             0x04</span></div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a3753da15db3e6434cedd8494a27aad52">  173</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_375K             0x05</span></div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ab4fb77046d552cd577385075c1aaf2f2">  174</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_187_5K           0x06</span></div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a6aecf0d6503293a97618a7bd7008a1ac">  175</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_WRD_CLK_93_8K            0x07</span></div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a5c5a3b627de7a172db1170389da7caa3">  177</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH0   0</span></div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a8db09f6834a24bc3a36309dd48bc367b">  178</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH1   1</span></div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ab68d220643c2121880ab85639e045818">  179</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH2   2</span></div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a291e88910bc0b77317c2e78108219750">  180</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH3   3</span></div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a565287772fda6deb63effa29b9036190">  181</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH4   4</span></div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a4170c459c74e3fdd020a9fb2d4e235f9">  182</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH5   5</span></div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ad812f45c76971e73743547aaacf42c8f">  183</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH6   6</span></div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a0c7fc1f5bc222d13c4e5fab876dc1313">  184</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH7   7</span></div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a26cd028a8247bb0c1e1dc67ca5e53734">  185</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH8   8</span></div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a59ac9b4ba91a97abcd64144af312b8d1">  186</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH9   9</span></div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="cp2130_8h.html#abb1f2af530395a517d7aa6d299f12129">  187</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_CH10  10</span></div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="comment">// Lock Byte</span></div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a76afc1879866a915ca9c293a2d1faf1d">  190</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_PROD_STR1   0x0001</span></div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ae4bded909dadb9f44552969a7447bc4d">  191</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_PROD_STR2   0x0002</span></div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="cp2130_8h.html#af27b3298b5d6dc9d85f1f3948bafe38d">  192</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_SERIAL_STR1 0x0004</span></div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a52db6df7a3933fb411b307a4fffbedb2">  193</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_PIN_CFG     0x0008</span></div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a593ba0781d61b1766a70a7283c8078b1">  194</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_VID         0x0100</span></div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ae985dd97f7db28f26f8f6dd0b775d648">  195</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_PID         0x0200</span></div><div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="cp2130_8h.html#abe947176ab0984fe77858375b43b45bc">  196</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_MAX_POW     0x0400</span></div><div class="line"><a name="l00197"></a><span class="lineno"><a class="line" href="cp2130_8h.html#afdc097641358838c79f86c909564057e">  197</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_POW_MODE    0x0800</span></div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="cp2130_8h.html#af9570ff6e45c2a4f1a1924c651c03415">  198</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_RELEASE_VER 0x1000</span></div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a78efe3ecddcb9c0601805c53c572a53e">  199</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_MAN_STR2    0x2000</span></div><div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a125572469942ae7673d612f90a9494d7">  200</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_MAN_STR1    0x4000</span></div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a5de04e8248cb8487910c2685bcad93fd">  201</a></span>&#160;<span class="preprocessor">#define CP2130_LOCK_TRANS_PRTY  0x8000</span></div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="comment">// SPI delay</span></div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a3ac88d83beaceb524e5e3a734992ebce">  204</a></span>&#160;<span class="preprocessor">#define CP2130_SPI_DELAY_MSK</span></div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="comment">// USB Config</span></div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="cp2130_8h.html#afdc489ff124972964e3e3a3df56bddb2">  207</a></span>&#160;<span class="preprocessor">#define CP2130_USP_MAX_POW_MA(ma)       ((uint8_t)(ma / 2u))</span></div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="cp2130_8h.html#afd07fe82632dbb2a150a2a7d4482192e">  208</a></span>&#160;<span class="preprocessor">#define CP2130_USB_BUS_POW_REG_EN       0x00</span></div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a430aa4b8eb718d198980804f041aa372">  209</a></span>&#160;<span class="preprocessor">#define CP2130_USB_SELF_POW_REG_DIS     0x01</span></div><div class="line"><a name="l00210"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ae37bcd44c1e599587bc6d385113bcea6">  210</a></span>&#160;<span class="preprocessor">#define CP2130_USB_SELF_POW_REG_EN      0x02</span></div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ae77ec4379a79b84ee36c05f474e13a42">  211</a></span>&#160;<span class="preprocessor">#define CP2130_USB_PRIORITY_WRITE       0x01</span></div><div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ab279cacda0133cdbd70777c4c53157e2">  212</a></span>&#160;<span class="preprocessor">#define CP2130_USB_PRIORITY_READ        0x00</span></div><div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a1a13942e097a5f988b4e217e9785d276">  213</a></span>&#160;<span class="preprocessor">#define CP2130_USB_CFG_MSK_VID          0x01</span></div><div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a5bb4aabfef07859a18a69dfdf0f876d4">  214</a></span>&#160;<span class="preprocessor">#define CP2130_USB_CFG_MSK_PID          0x02</span></div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a0c19b815d73fa232c73cdabd881e05b9">  215</a></span>&#160;<span class="preprocessor">#define CP2130_USB_CFG_MSK_MAX_POW      0x04</span></div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="cp2130_8h.html#abce96f9a3b5359a3b69d94a8b770636e">  216</a></span>&#160;<span class="preprocessor">#define CP2130_USB_CFG_MSK_POW_MODE     0x08</span></div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="cp2130_8h.html#ab356e4579507e6f7964d397418f79896">  217</a></span>&#160;<span class="preprocessor">#define CP2130_USB_CFG_MSK_VERSION      0x10</span></div><div class="line"><a name="l00218"></a><span class="lineno"><a class="line" href="cp2130_8h.html#abc43e1bfb750d150c27946adb9a13a50">  218</a></span>&#160;<span class="preprocessor">#define CP2130_USB_CFG_MSK_PRIORITY     0x80</span></div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="comment">// device handle</span></div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="structcp2130__device__t.html">  221</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structcp2130__device__t.html">cp2130_device_t</a></div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;{</div><div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="structcp2130__device__t.html#a003ccbb013f7479e2d439db75feb1463">  223</a></span>&#160;    uint8_t <a class="code" href="structcp2130__device__t.html#a003ccbb013f7479e2d439db75feb1463">ubKernelAttached</a>;</div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="structcp2130__device__t.html#adbfaaac8352dcec7b98b6a981a6db2a8">  224</a></span>&#160;    uint16_t <a class="code" href="structcp2130__device__t.html#adbfaaac8352dcec7b98b6a981a6db2a8">usTimeout</a>;</div><div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="structcp2130__device__t.html#af519c6bdc04770a8a7b862671168035a">  225</a></span>&#160;    libusb_device_handle *<a class="code" href="structcp2130__device__t.html#af519c6bdc04770a8a7b862671168035a">pDev</a>;</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;} <a class="code" href="cp2130_8h.html#a2e31bf806552f32f4a72f7903f1e336c">cp2130_device_t</a>;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="comment">// initializer and destructor</span></div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *<a class="code" href="cp2130_8h.html#a097a700eac6e0e600315630dcf5c9ce2">cp2130_init</a>(libusb_context *ctx, uint16_t usVid, uint16_t usPid);</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#af475b4cfd5a6261302154a0fbc877330">cp2130_free</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev);</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="cp2130_8h.html#a32dd3acd8da5133741bf15dcfdcd3a8a">  232</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a32dd3acd8da5133741bf15dcfdcd3a8a">cp2130_set_timeout</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint16_t <a class="code" href="structcp2130__device__t.html#adbfaaac8352dcec7b98b6a981a6db2a8">usTimeout</a>)</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;{</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    pCpDev-&gt;<a class="code" href="structcp2130__device__t.html#adbfaaac8352dcec7b98b6a981a6db2a8">usTimeout</a> = <a class="code" href="structcp2130__device__t.html#adbfaaac8352dcec7b98b6a981a6db2a8">usTimeout</a>;</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;}</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;<span class="comment">// Data Transfer Commands (Bulk Transfers)</span></div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#ad711d28aa18634f233137b9d8519d89f">cp2130_spi_transfer</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubData, uint32_t ulLen);</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a77e604d1dd146fa5888431765affc3fa">cp2130_spi_write</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubData, uint32_t ulLen);</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#aa546b24d919e63e12446b9bcf4009fcd">cp2130_spi_read</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubData, uint32_t ulLen);</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#af8825e5d9cce98c53e23ba6a81125841">cp2130_spi_read_rtr</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubData, uint32_t ulLen);</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;<span class="comment">// Configuration and Control Commands (Control Transfers)</span></div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#aa71815c7321a6ecfea39cae8bf71ca0a">cp2130_reset</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev);</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#acd29a39557015fcdc35a95b01a8d04aa">cp2130_get_clockdiv</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubClockDiv);</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a1058bdf86efe27e23c82e8dbba473354">cp2130_set_clockdiv</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t ubClockDiv);</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#af8d275b671cd7e61e2f0c7eb61ec4824">cp2130_get_event_counter</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubMode, uint16_t *pusCount);</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a06baa3e27553daa5e186187b2e4f7bb9">cp2130_set_event_counter</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t ubMode, uint16_t usCount);</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a941aac74f35e748d5871029cff1fe781">cp2130_get_full_threshold</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubThreshold);</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#aa07c1f7ddd5d9ee2de09e79244c354b2">cp2130_set_full_threshold</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t ubThreshold);</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a4e201ae5300f6f4b9c30cd70e83872ae">cp2130_get_gpio_cs</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint16_t *pusCsEn, uint16_t *pusPinCsEn);</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#acbe7dd2ca5dae825779e80172da91aad">cp2130_set_gpio_cs</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t usCh, uint8_t usCtrl);</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a7f0e046347e422c7a465ff6dd430f214">cp2130_get_gpio_mode_level</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint16_t *pusLevel, uint16_t *pusMode);</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#af4c5130a12473a49fc51237768ef1737">cp2130_set_gpio_mode_level</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t ubIndex, uint8_t ubMode, uint8_t ubLevel);</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a5f05c8f044c556a2214b453d96898848">cp2130_get_gpio_values</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint16_t *pusLevel);</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a4e440de1d7587633b53efd78ea2a200e">cp2130_set_gpio_values</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint16_t usLevel, uint16_t usMask);</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a2a9b4cc7bd11d268c9eae782a10b5e30">cp2130_get_rtr_state</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubActive);</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a63898c5edcb5a594d1fba12fa910e259">cp2130_set_rtr_stop</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t ubAbort);</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a317a62a11ea8f5d7aac75fad651e470a">cp2130_get_spi_word</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubChNword);</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#ac6c8e834c6c46e819dacdaee16089295">cp2130_set_spi_word</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t ubCh, uint8_t ubChWord);</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a08f702519e8035d30bd80239bdd274de">cp2130_get_spi_delay</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t ubSpiCh, uint8_t *pubMask, uint16_t *pusInBDelay, uint16_t *pusPostDelay, uint16_t *pusPreDelay);</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a7ca697400c907d88586d96ef91db2e85">cp2130_set_spi_delay</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t ubSpiCh, uint8_t ubMask, uint16_t usInBDelay, uint16_t usPostDelay, uint16_t usPreDelay);</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#acb9485f5990d6cc60f40a2cbe90f24f1">cp2130_get_version</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubMajor, uint8_t *pubMinor);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;<span class="comment">// OTP ROM Configuration Commands (Control Transfers)</span></div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#abfec5c5ed2d830891818aea650eeccb9">cp2130_get_lock_byte</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint16_t *pusLock);</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a966e037b583da3cac2f684fe4f8d6b15">cp2130_set_lock_byte</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint16_t usLock);</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a762e30f5509eee0352cf7a80a2cab97f">cp2130_get_manufacturer_string</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubStr);</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a828e7dd5bd8b57ce00f9716ece17984f">cp2130_set_manufacturer_string</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubStr);</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a463f6fe2bc0a34142dcd65ae0aae93e3">cp2130_get_prod_string</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubStr);</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a6b6b5e98b508e1d21e757d92d7ae4f62">cp2130_set_prod_string</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubStr);</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#ab6fb152e29ebc8c714d19fecaf05a127">cp2130_get_serial</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubStr);</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a3543d368bdf5676b1abe1039a07cb64b">cp2130_set_serial</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubStr);</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#af8ff9477b62e79365d6e27e0df16acf5">cp2130_get_pin_cfg</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubPinCfg);</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#af553f9ba4c6c5f28c1975cfe0b20c3f4">cp2130_set_pin_cfg</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t *pubPinCfg);</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a4774bbebc24b82afb13f0a5290d4b18c">cp2130_get_prom_cfg</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t ubBlkIndex, uint8_t *pubBlk);</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#ae10ab865460eb84fdde73743c4979f99">cp2130_set_prom_cfg</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint8_t ubBlkIndex,uint8_t *pubBlk);</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#a9e4cf16db0c03c13f3dde1f35586ed53">cp2130_get_usb_cfg</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint16_t *pusVid, uint16_t *pusPid, uint8_t *pubMaxPow, uint8_t *pubPowMode, uint8_t *pubMajorRelease, uint8_t *pubMinorRelease, uint8_t *pubTransferPriority);</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;<span class="keywordtype">void</span> <a class="code" href="cp2130_8h.html#ab5c61f903a6d81e7bc7198c82eefb6db">cp2130_set_usb_cfg</a>(<a class="code" href="structcp2130__device__t.html">cp2130_device_t</a> *pCpDev, uint16_t usVid, uint16_t usPid, uint8_t ubMaxPow, uint8_t ubPowMode, uint8_t ubMajorRelease, uint8_t ubMinorRelease, uint8_t ubTransferPriority, uint8_t ubMask); <span class="comment">// untested</span></div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;<span class="preprocessor">#endif // __CP2130_H</span></div><div class="ttc" id="cp2130_8h_html_a828e7dd5bd8b57ce00f9716ece17984f"><div class="ttname"><a href="cp2130_8h.html#a828e7dd5bd8b57ce00f9716ece17984f">cp2130_set_manufacturer_string</a></div><div class="ttdeci">void cp2130_set_manufacturer_string(cp2130_device_t *pCpDev, uint8_t *pubStr)</div><div class="ttdef"><b>Definition:</b> cp2130.c:534</div></div>
<div class="ttc" id="cp2130_8h_html_ab5c61f903a6d81e7bc7198c82eefb6db"><div class="ttname"><a href="cp2130_8h.html#ab5c61f903a6d81e7bc7198c82eefb6db">cp2130_set_usb_cfg</a></div><div class="ttdeci">void cp2130_set_usb_cfg(cp2130_device_t *pCpDev, uint16_t usVid, uint16_t usPid, uint8_t ubMaxPow, uint8_t ubPowMode, uint8_t ubMajorRelease, uint8_t ubMinorRelease, uint8_t ubTransferPriority, uint8_t ubMask)</div><div class="ttdef"><b>Definition:</b> cp2130.c:768</div></div>
<div class="ttc" id="cp2130_8h_html_acb9485f5990d6cc60f40a2cbe90f24f1"><div class="ttname"><a href="cp2130_8h.html#acb9485f5990d6cc60f40a2cbe90f24f1">cp2130_get_version</a></div><div class="ttdeci">void cp2130_get_version(cp2130_device_t *pCpDev, uint8_t *pubMajor, uint8_t *pubMinor)</div><div class="ttdef"><b>Definition:</b> cp2130.c:462</div></div>
<div class="ttc" id="cp2130_8h_html_abfec5c5ed2d830891818aea650eeccb9"><div class="ttname"><a href="cp2130_8h.html#abfec5c5ed2d830891818aea650eeccb9">cp2130_get_lock_byte</a></div><div class="ttdeci">void cp2130_get_lock_byte(cp2130_device_t *pCpDev, uint16_t *pusLock)</div><div class="ttdef"><b>Definition:</b> cp2130.c:476</div></div>
<div class="ttc" id="cp2130_8h_html_a4e440de1d7587633b53efd78ea2a200e"><div class="ttname"><a href="cp2130_8h.html#a4e440de1d7587633b53efd78ea2a200e">cp2130_set_gpio_values</a></div><div class="ttdeci">void cp2130_set_gpio_values(cp2130_device_t *pCpDev, uint16_t usLevel, uint16_t usMask)</div><div class="ttdef"><b>Definition:</b> cp2130.c:387</div></div>
<div class="ttc" id="structcp2130__device__t_html_a003ccbb013f7479e2d439db75feb1463"><div class="ttname"><a href="structcp2130__device__t.html#a003ccbb013f7479e2d439db75feb1463">cp2130_device_t::ubKernelAttached</a></div><div class="ttdeci">uint8_t ubKernelAttached</div><div class="ttdef"><b>Definition:</b> cp2130.h:223</div></div>
<div class="ttc" id="cp2130_8h_html_aa07c1f7ddd5d9ee2de09e79244c354b2"><div class="ttname"><a href="cp2130_8h.html#aa07c1f7ddd5d9ee2de09e79244c354b2">cp2130_set_full_threshold</a></div><div class="ttdeci">void cp2130_set_full_threshold(cp2130_device_t *pCpDev, uint8_t ubThreshold)</div><div class="ttdef"><b>Definition:</b> cp2130.c:314</div></div>
<div class="ttc" id="cp2130_8h_html_a966e037b583da3cac2f684fe4f8d6b15"><div class="ttname"><a href="cp2130_8h.html#a966e037b583da3cac2f684fe4f8d6b15">cp2130_set_lock_byte</a></div><div class="ttdeci">void cp2130_set_lock_byte(cp2130_device_t *pCpDev, uint16_t usLock)</div><div class="ttdef"><b>Definition:</b> cp2130.c:489</div></div>
<div class="ttc" id="cp2130_8h_html_aa546b24d919e63e12446b9bcf4009fcd"><div class="ttname"><a href="cp2130_8h.html#aa546b24d919e63e12446b9bcf4009fcd">cp2130_spi_read</a></div><div class="ttdeci">void cp2130_spi_read(cp2130_device_t *pCpDev, uint8_t *pubData, uint32_t ulLen)</div><div class="ttdef"><b>Definition:</b> cp2130.c:203</div></div>
<div class="ttc" id="cp2130_8h_html_a317a62a11ea8f5d7aac75fad651e470a"><div class="ttname"><a href="cp2130_8h.html#a317a62a11ea8f5d7aac75fad651e470a">cp2130_get_spi_word</a></div><div class="ttdeci">void cp2130_get_spi_word(cp2130_device_t *pCpDev, uint8_t *pubChNword)</div><div class="ttdef"><b>Definition:</b> cp2130.c:408</div></div>
<div class="ttc" id="cp2130_8h_html_af8825e5d9cce98c53e23ba6a81125841"><div class="ttname"><a href="cp2130_8h.html#af8825e5d9cce98c53e23ba6a81125841">cp2130_spi_read_rtr</a></div><div class="ttdeci">void cp2130_spi_read_rtr(cp2130_device_t *pCpDev, uint8_t *pubData, uint32_t ulLen)</div><div class="ttdef"><b>Definition:</b> cp2130.c:235</div></div>
<div class="ttc" id="cp2130_8h_html_a7f0e046347e422c7a465ff6dd430f214"><div class="ttname"><a href="cp2130_8h.html#a7f0e046347e422c7a465ff6dd430f214">cp2130_get_gpio_mode_level</a></div><div class="ttdeci">void cp2130_get_gpio_mode_level(cp2130_device_t *pCpDev, uint16_t *pusLevel, uint16_t *pusMode)</div><div class="ttdef"><b>Definition:</b> cp2130.c:346</div></div>
<div class="ttc" id="debug__macros_8h_html"><div class="ttname"><a href="debug__macros_8h.html">debug_macros.h</a></div></div>
<div class="ttc" id="cp2130_8h_html_a08f702519e8035d30bd80239bdd274de"><div class="ttname"><a href="cp2130_8h.html#a08f702519e8035d30bd80239bdd274de">cp2130_get_spi_delay</a></div><div class="ttdeci">void cp2130_get_spi_delay(cp2130_device_t *pCpDev, uint8_t ubSpiCh, uint8_t *pubMask, uint16_t *pusInBDelay, uint16_t *pusPostDelay, uint16_t *pusPreDelay)</div><div class="ttdef"><b>Definition:</b> cp2130.c:422</div></div>
<div class="ttc" id="cp2130_8h_html_acbe7dd2ca5dae825779e80172da91aad"><div class="ttname"><a href="cp2130_8h.html#acbe7dd2ca5dae825779e80172da91aad">cp2130_set_gpio_cs</a></div><div class="ttdeci">void cp2130_set_gpio_cs(cp2130_device_t *pCpDev, uint8_t usCh, uint8_t usCtrl)</div><div class="ttdef"><b>Definition:</b> cp2130.c:337</div></div>
<div class="ttc" id="cp2130_8h_html_af4c5130a12473a49fc51237768ef1737"><div class="ttname"><a href="cp2130_8h.html#af4c5130a12473a49fc51237768ef1737">cp2130_set_gpio_mode_level</a></div><div class="ttdeci">void cp2130_set_gpio_mode_level(cp2130_device_t *pCpDev, uint8_t ubIndex, uint8_t ubMode, uint8_t ubLevel)</div><div class="ttdef"><b>Definition:</b> cp2130.c:364</div></div>
<div class="ttc" id="utils_8h_html"><div class="ttname"><a href="utils_8h.html">utils.h</a></div></div>
<div class="ttc" id="cp2130_8h_html_a6b6b5e98b508e1d21e757d92d7ae4f62"><div class="ttname"><a href="cp2130_8h.html#a6b6b5e98b508e1d21e757d92d7ae4f62">cp2130_set_prod_string</a></div><div class="ttdeci">void cp2130_set_prod_string(cp2130_device_t *pCpDev, uint8_t *pubStr)</div><div class="ttdef"><b>Definition:</b> cp2130.c:607</div></div>
<div class="ttc" id="cp2130_8h_html_a3543d368bdf5676b1abe1039a07cb64b"><div class="ttname"><a href="cp2130_8h.html#a3543d368bdf5676b1abe1039a07cb64b">cp2130_set_serial</a></div><div class="ttdeci">void cp2130_set_serial(cp2130_device_t *pCpDev, uint8_t *pubStr)</div><div class="ttdef"><b>Definition:</b> cp2130.c:670</div></div>
<div class="ttc" id="cp2130_8h_html_a32dd3acd8da5133741bf15dcfdcd3a8a"><div class="ttname"><a href="cp2130_8h.html#a32dd3acd8da5133741bf15dcfdcd3a8a">cp2130_set_timeout</a></div><div class="ttdeci">void cp2130_set_timeout(cp2130_device_t *pCpDev, uint16_t usTimeout)</div><div class="ttdef"><b>Definition:</b> cp2130.h:232</div></div>
<div class="ttc" id="cp2130_8h_html_a7ca697400c907d88586d96ef91db2e85"><div class="ttname"><a href="cp2130_8h.html#a7ca697400c907d88586d96ef91db2e85">cp2130_set_spi_delay</a></div><div class="ttdeci">void cp2130_set_spi_delay(cp2130_device_t *pCpDev, uint8_t ubSpiCh, uint8_t ubMask, uint16_t usInBDelay, uint16_t usPostDelay, uint16_t usPreDelay)</div><div class="ttdef"><b>Definition:</b> cp2130.c:447</div></div>
<div class="ttc" id="structcp2130__device__t_html"><div class="ttname"><a href="structcp2130__device__t.html">cp2130_device_t</a></div><div class="ttdef"><b>Definition:</b> cp2130.h:221</div></div>
<div class="ttc" id="cp2130_8h_html_a2e31bf806552f32f4a72f7903f1e336c"><div class="ttname"><a href="cp2130_8h.html#a2e31bf806552f32f4a72f7903f1e336c">cp2130_device_t</a></div><div class="ttdeci">struct cp2130_device_t cp2130_device_t</div></div>
<div class="ttc" id="cp2130_8h_html_a77e604d1dd146fa5888431765affc3fa"><div class="ttname"><a href="cp2130_8h.html#a77e604d1dd146fa5888431765affc3fa">cp2130_spi_write</a></div><div class="ttdeci">void cp2130_spi_write(cp2130_device_t *pCpDev, uint8_t *pubData, uint32_t ulLen)</div><div class="ttdef"><b>Definition:</b> cp2130.c:167</div></div>
<div class="ttc" id="cp2130_8h_html_a762e30f5509eee0352cf7a80a2cab97f"><div class="ttname"><a href="cp2130_8h.html#a762e30f5509eee0352cf7a80a2cab97f">cp2130_get_manufacturer_string</a></div><div class="ttdeci">void cp2130_get_manufacturer_string(cp2130_device_t *pCpDev, uint8_t *pubStr)</div><div class="ttdef"><b>Definition:</b> cp2130.c:502</div></div>
<div class="ttc" id="cp2130_8h_html_af475b4cfd5a6261302154a0fbc877330"><div class="ttname"><a href="cp2130_8h.html#af475b4cfd5a6261302154a0fbc877330">cp2130_free</a></div><div class="ttdeci">void cp2130_free(cp2130_device_t *pCpDev)</div><div class="ttdef"><b>Definition:</b> cp2130.c:70</div></div>
<div class="ttc" id="cp2130_8h_html_af553f9ba4c6c5f28c1975cfe0b20c3f4"><div class="ttname"><a href="cp2130_8h.html#af553f9ba4c6c5f28c1975cfe0b20c3f4">cp2130_set_pin_cfg</a></div><div class="ttdeci">void cp2130_set_pin_cfg(cp2130_device_t *pCpDev, uint8_t *pubPinCfg)</div><div class="ttdef"><b>Definition:</b> cp2130.c:708</div></div>
<div class="ttc" id="cp2130_8h_html_a9e4cf16db0c03c13f3dde1f35586ed53"><div class="ttname"><a href="cp2130_8h.html#a9e4cf16db0c03c13f3dde1f35586ed53">cp2130_get_usb_cfg</a></div><div class="ttdeci">void cp2130_get_usb_cfg(cp2130_device_t *pCpDev, uint16_t *pusVid, uint16_t *pusPid, uint8_t *pubMaxPow, uint8_t *pubPowMode, uint8_t *pubMajorRelease, uint8_t *pubMinorRelease, uint8_t *pubTransferPriority)</div><div class="ttdef"><b>Definition:</b> cp2130.c:740</div></div>
<div class="ttc" id="cp2130_8h_html_a63898c5edcb5a594d1fba12fa910e259"><div class="ttname"><a href="cp2130_8h.html#a63898c5edcb5a594d1fba12fa910e259">cp2130_set_rtr_stop</a></div><div class="ttdeci">void cp2130_set_rtr_stop(cp2130_device_t *pCpDev, uint8_t ubAbort)</div><div class="ttdef"><b>Definition:</b> cp2130.c:403</div></div>
<div class="ttc" id="cp2130_8h_html_a097a700eac6e0e600315630dcf5c9ce2"><div class="ttname"><a href="cp2130_8h.html#a097a700eac6e0e600315630dcf5c9ce2">cp2130_init</a></div><div class="ttdeci">cp2130_device_t * cp2130_init(libusb_context *ctx, uint16_t usVid, uint16_t usPid)</div><div class="ttdoc">brief </div><div class="ttdef"><b>Definition:</b> cp2130.c:17</div></div>
<div class="ttc" id="cp2130_8h_html_a5f05c8f044c556a2214b453d96898848"><div class="ttname"><a href="cp2130_8h.html#a5f05c8f044c556a2214b453d96898848">cp2130_get_gpio_values</a></div><div class="ttdeci">void cp2130_get_gpio_values(cp2130_device_t *pCpDev, uint16_t *pusLevel)</div><div class="ttdef"><b>Definition:</b> cp2130.c:374</div></div>
<div class="ttc" id="structcp2130__device__t_html_adbfaaac8352dcec7b98b6a981a6db2a8"><div class="ttname"><a href="structcp2130__device__t.html#adbfaaac8352dcec7b98b6a981a6db2a8">cp2130_device_t::usTimeout</a></div><div class="ttdeci">uint16_t usTimeout</div><div class="ttdef"><b>Definition:</b> cp2130.h:224</div></div>
<div class="ttc" id="cp2130_8h_html_a1058bdf86efe27e23c82e8dbba473354"><div class="ttname"><a href="cp2130_8h.html#a1058bdf86efe27e23c82e8dbba473354">cp2130_set_clockdiv</a></div><div class="ttdeci">void cp2130_set_clockdiv(cp2130_device_t *pCpDev, uint8_t ubClockDiv)</div><div class="ttdef"><b>Definition:</b> cp2130.c:279</div></div>
<div class="ttc" id="cp2130_8h_html_aa71815c7321a6ecfea39cae8bf71ca0a"><div class="ttname"><a href="cp2130_8h.html#aa71815c7321a6ecfea39cae8bf71ca0a">cp2130_reset</a></div><div class="ttdeci">void cp2130_reset(cp2130_device_t *pCpDev)</div><div class="ttdef"><b>Definition:</b> cp2130.c:269</div></div>
<div class="ttc" id="cp2130_8h_html_a06baa3e27553daa5e186187b2e4f7bb9"><div class="ttname"><a href="cp2130_8h.html#a06baa3e27553daa5e186187b2e4f7bb9">cp2130_set_event_counter</a></div><div class="ttdeci">void cp2130_set_event_counter(cp2130_device_t *pCpDev, uint8_t ubMode, uint16_t usCount)</div><div class="ttdef"><b>Definition:</b> cp2130.c:299</div></div>
<div class="ttc" id="cp2130_8h_html_ac6c8e834c6c46e819dacdaee16089295"><div class="ttname"><a href="cp2130_8h.html#ac6c8e834c6c46e819dacdaee16089295">cp2130_set_spi_word</a></div><div class="ttdeci">void cp2130_set_spi_word(cp2130_device_t *pCpDev, uint8_t ubCh, uint8_t ubChWord)</div><div class="ttdef"><b>Definition:</b> cp2130.c:413</div></div>
<div class="ttc" id="cp2130_8h_html_af8ff9477b62e79365d6e27e0df16acf5"><div class="ttname"><a href="cp2130_8h.html#af8ff9477b62e79365d6e27e0df16acf5">cp2130_get_pin_cfg</a></div><div class="ttdeci">void cp2130_get_pin_cfg(cp2130_device_t *pCpDev, uint8_t *pubPinCfg)</div><div class="ttdef"><b>Definition:</b> cp2130.c:703</div></div>
<div class="ttc" id="cp2130_8h_html_ae10ab865460eb84fdde73743c4979f99"><div class="ttname"><a href="cp2130_8h.html#ae10ab865460eb84fdde73743c4979f99">cp2130_set_prom_cfg</a></div><div class="ttdeci">void cp2130_set_prom_cfg(cp2130_device_t *pCpDev, uint8_t ubBlkIndex, uint8_t *pubBlk)</div><div class="ttdef"><b>Definition:</b> cp2130.c:727</div></div>
<div class="ttc" id="cp2130_8h_html_a2a9b4cc7bd11d268c9eae782a10b5e30"><div class="ttname"><a href="cp2130_8h.html#a2a9b4cc7bd11d268c9eae782a10b5e30">cp2130_get_rtr_state</a></div><div class="ttdeci">void cp2130_get_rtr_state(cp2130_device_t *pCpDev, uint8_t *pubActive)</div><div class="ttdef"><b>Definition:</b> cp2130.c:398</div></div>
<div class="ttc" id="structcp2130__device__t_html_af519c6bdc04770a8a7b862671168035a"><div class="ttname"><a href="structcp2130__device__t.html#af519c6bdc04770a8a7b862671168035a">cp2130_device_t::pDev</a></div><div class="ttdeci">libusb_device_handle * pDev</div><div class="ttdef"><b>Definition:</b> cp2130.h:225</div></div>
<div class="ttc" id="cp2130_8h_html_acd29a39557015fcdc35a95b01a8d04aa"><div class="ttname"><a href="cp2130_8h.html#acd29a39557015fcdc35a95b01a8d04aa">cp2130_get_clockdiv</a></div><div class="ttdeci">void cp2130_get_clockdiv(cp2130_device_t *pCpDev, uint8_t *pubClockDiv)</div><div class="ttdef"><b>Definition:</b> cp2130.c:274</div></div>
<div class="ttc" id="cp2130_8h_html_a463f6fe2bc0a34142dcd65ae0aae93e3"><div class="ttname"><a href="cp2130_8h.html#a463f6fe2bc0a34142dcd65ae0aae93e3">cp2130_get_prod_string</a></div><div class="ttdeci">void cp2130_get_prod_string(cp2130_device_t *pCpDev, uint8_t *pubStr)</div><div class="ttdef"><b>Definition:</b> cp2130.c:575</div></div>
<div class="ttc" id="cp2130_8h_html_af8d275b671cd7e61e2f0c7eb61ec4824"><div class="ttname"><a href="cp2130_8h.html#af8d275b671cd7e61e2f0c7eb61ec4824">cp2130_get_event_counter</a></div><div class="ttdeci">void cp2130_get_event_counter(cp2130_device_t *pCpDev, uint8_t *pubMode, uint16_t *pusCount)</div><div class="ttdef"><b>Definition:</b> cp2130.c:284</div></div>
<div class="ttc" id="cp2130_8h_html_ab6fb152e29ebc8c714d19fecaf05a127"><div class="ttname"><a href="cp2130_8h.html#ab6fb152e29ebc8c714d19fecaf05a127">cp2130_get_serial</a></div><div class="ttdeci">void cp2130_get_serial(cp2130_device_t *pCpDev, uint8_t *pubStr)</div><div class="ttdef"><b>Definition:</b> cp2130.c:648</div></div>
<div class="ttc" id="cp2130_8h_html_a4774bbebc24b82afb13f0a5290d4b18c"><div class="ttname"><a href="cp2130_8h.html#a4774bbebc24b82afb13f0a5290d4b18c">cp2130_get_prom_cfg</a></div><div class="ttdeci">void cp2130_get_prom_cfg(cp2130_device_t *pCpDev, uint8_t ubBlkIndex, uint8_t *pubBlk)</div><div class="ttdef"><b>Definition:</b> cp2130.c:722</div></div>
<div class="ttc" id="cp2130_8h_html_a4e201ae5300f6f4b9c30cd70e83872ae"><div class="ttname"><a href="cp2130_8h.html#a4e201ae5300f6f4b9c30cd70e83872ae">cp2130_get_gpio_cs</a></div><div class="ttdeci">void cp2130_get_gpio_cs(cp2130_device_t *pCpDev, uint16_t *pusCsEn, uint16_t *pusPinCsEn)</div><div class="ttdef"><b>Definition:</b> cp2130.c:319</div></div>
<div class="ttc" id="cp2130_8h_html_a941aac74f35e748d5871029cff1fe781"><div class="ttname"><a href="cp2130_8h.html#a941aac74f35e748d5871029cff1fe781">cp2130_get_full_threshold</a></div><div class="ttdeci">void cp2130_get_full_threshold(cp2130_device_t *pCpDev, uint8_t *pubThreshold)</div><div class="ttdef"><b>Definition:</b> cp2130.c:309</div></div>
<div class="ttc" id="cp2130_8h_html_ad711d28aa18634f233137b9d8519d89f"><div class="ttname"><a href="cp2130_8h.html#ad711d28aa18634f233137b9d8519d89f">cp2130_spi_transfer</a></div><div class="ttdeci">void cp2130_spi_transfer(cp2130_device_t *pCpDev, uint8_t *pubData, uint32_t ulLen)</div><div class="ttdef"><b>Definition:</b> cp2130.c:126</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
